<div class="left side-menu">
    <div class="sidebar-inner slimscrollleft">

        <!--- Sidemenu -->
        <div id="sidebar-menu">
            <ul>
                @if(isset($menulist))
                @foreach($menulist as $menu)
                <li class="has_sub">
                    <a href="javascript:void(0);" class="waves-effect"><i class="mdi {{ $menu['icon'] ?: 'mdi-view-dashboard' }}"></i><span> {{ $menu['name'] }} </span> <span class="menu-arrow"></span></a>
                    <ul class="list-unstyled">
                        @if(isset($menu['child']))
                        @foreach($menu['child'] as $child)
                        <li><a href="{{ route($child['namespace'].'.'.$child['controller'].'.'.$child['action']) }}">{{ $child['name'] }}</a></li>
                        @endforeach
                        @endif;
                    </ul>
                </li>
                @endforeach
                @endif
            </ul>
        </div>
        <!-- Sidebar -->
        <div class="clearfix"></div>
    </div>
    <!-- Sidebar -left -->

</div>